package com.acme.bankapp.domain.bank;


public class Bank {
	
	private int num;
	private int maxNumClients = 10;
	private Client[] clients = new Client [maxNumClients];
	
	public int getMaxNumClients() {
		return maxNumClients;
	}
	
	public int getNumClients() {
		return num;
	}
	
	public Client getClient (int num) {
		if (num > this.num) {
			return null;
		}
		return clients[num]; 
	}	
	
	public int addClient (Client client) {
		if (num >= maxNumClients) {
			System.out.println("too many clients");
			return 1;			
		} 
		clients[num] = client;
		num++;
		return 0;
	}

}
